﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CNLTHD_GoogleMapAPI_DTO;

namespace CNLTHD_GoogleMapAPI_DAO
{
	public class KiemTraDoiTuongHopLe
	{
		public static bool KiemTraLoaiDiaDiem(LoaiDiaDiem loaidd)
		{
			if (loaidd == null) return false;
			if (loaidd.MaLoaiDiaDiem < 1) return false;

			return true;
		}

		public static bool KiemTraDiaDiem(double kinhDo, double viDo, int nd, int loaidd, string tenDiaDiem)
		{
			return true;
		}



		public static bool KiemTraTenDiaDiem(string tenDiaDiem)
		{
			if (tenDiaDiem.Length == 0)
				return false;
			return true;
		}

		public static bool KiemTraTenTaiKhoan(string tenTaiKhoan)
		{
			if (tenTaiKhoan == null)
			{
				return false;
			}

			return true;
		}

		public static bool KiemTraTenTaiKhoanMatKhau(string tenTaiKhoan, string matKhau)
		{
			if (tenTaiKhoan == null || matKhau == null)
			{
				return false;
			}
			return true;
		}




		internal static bool TaiKhoanDaTonTai(string tenTaiKhoan)
		{
			NguoiDung nd = null;
			nd = NguoiDungDAO.LayNguoiDung(tenTaiKhoan);

			if (nd == null)
			{
				return false;
			}

			return true;
		}
	}
}
